package com.weixing.mall.provider.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.weixing.mall.provider.model.domain.OutDepotBill;
import com.weixing.mall.provider.model.dto.OutDepotChgIsFinishDto;
import com.weixing.mall.provider.model.query.OutDepotBillQuery;
import com.weixing.mall.provider.model.vo.OutDepotBillListVo;
import com.weixing.mall.provider.model.vo.OutDepotBillVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * <p>
 * 仓库模块-调货出库单 Mapper 接口
 * </p>
 *
 * @author Small
 * @since 2019-11-15
 */
@Repository
public interface OutDepotBillMapper extends BaseMapper<OutDepotBill> {

    IPage<OutDepotBillListVo> selectOfPage(@Param("pg") Page page,@Param("qs") OutDepotBillQuery outDepotBillQuery);

    OutDepotBillVo getOutDepotBillById(Long id);

    void outDepotChgIsFinish(@Param("qs") OutDepotChgIsFinishDto outDepotChgIsFinishDto);

    OutDepotBillVo findMaxId();
}
